#ifndef _Brick_h_
#define _Brick_h_
#include <windows.h>
#include"Sprite.h"
#include"DAudio.h"

class CBrick
{
	int kind;
	int x;
	int y;
	int sy;
	int width;
	int height;
	int nCoins;
	CSprite *brick;
	CSprite *brick_touch;
	CSound *brick_break_sound;
	CSound *brick_jump_sound;
	CSound *brick_coin_sound;
	
public:
		bool isappear;
		bool istouch;
		bool isbreak;
	CBrick(int _kind,int _x,int _y,int width,int height);
	~CBrick();
	RECT getRECT();
	void Render(LPD3DXSPRITE sprite,LPDIRECT3DTEXTURE9 image,int time,int xcamara);
	void BeTouch(int id,int *kq,int *x,int *y);
};
#endif